
#注册自定义的标签
from django import template

from front.DBservice import Myfront, Userservice

register=template.Library()
@register.inclusion_tag('front/_tagMyGallery.html')
def myGallery():
    # list=Myfront.xiangche()
    list = Myfront.myGllery()
    return {'list':list}
@register.inclusion_tag('front/_aboutMe.html')
def aboutMe():
    user=Userservice.aboutme()
    return {'user':user}

@register.inclusion_tag('front/_tagMyArticle.html')#注册模板标签
def myArticle():
    data=Myfront.getWZFL()
    return {'list':data}

@register.inclusion_tag('front/_tuijian.html')#注册模板标签
def mytuijian():
    alist=Myfront.tuiJian()
    return {'alist':alist}
@register.inclusion_tag('front/_paiming.html')#注册模板标签
def mypaiming():
    adata=Myfront.paiming()
    return {'data':adata}

@register.inclusion_tag('front/_biaoqian.html')#注册模板标签
def mybiaoqian():
    bdata=Myfront.Biaoqian()
    return {'bdata':bdata}